export const constantRoute =[
    {
        path:"/",
        component:()=>import('@/layout/index.vue'),
        name:'home',
        meta:{
            title:"打发打发",
            icon:'Refresh'
        },
        redirect:'/webhome',
        children:[
            {
                path:'/webhome',
                component:()=> import('@/views/webMain/Home.vue'),
                meta:{
                    title:"主页",
                    icon:'PriceTag'

                },
            },
            {
                path:'/Living',
                component:()=> import('@/views/webMain/Living.vue'),
                meta:{
                    title:"直播",
                    icon:"VideoCamera"
                }
            },
            {
                path:'/Media',
                component:()=> import('@/views/webMain/Media.vue'),
                meta:{
                    title:"文件",
                    icon:"Document"
                }
            },
            {
                path:'/Member',
                component:()=> import('@/views/webMain/member.vue'),
                meta:{
                    title:"人员",
                    icon:"User"
                }
            },
            {
                path:'/MapConfig',
                component:()=> import('@/views/webMain/Flyline.vue'),
                meta:{
                    title:"航线",
                    icon:"Compass"
                }
            },

            // {
            //     path: '/pilotmedia',
            //     component: () => import('@/views/page-pilot/pilot-media.vue')
            // },
            // {
            //     path: '/pilotliveshare',
            //     component: () => import('@/views/page-pilot/pilot-liveshare.vue')
            // },
            // {
            //     path: '/pilotbind',
            //     component: () => import('@/views/page-pilot/pilot-bind.vue')
            // }
            
        ]
    },
    {
        path:"/pilot",
        // component:()=>import('@/layout/index.vue'),
        name:'pilot',
        meta:{
            title:"打发打发",
            icon:'Refresh'
        },
        redirect:'/pilot-home',
        children:[
            {
                path: '/pilot-home',
                component: () => import('@/views/page-pilot/pilot-home.vue')
            },
            {
                path: '/pilot-media',
                component: () => import('@/views/page-pilot/pilot-media.vue')
            },
            {
                path: '/pilot-liveshare',
                component: () => import('@/views/page-pilot/pilot-liveshare.vue')
            },
            {
                path: '/pilot-bind',
                component: () => import('@/views/page-pilot/pilot-bind.vue')
            }
            
        ]
    },
    {
        path:'/weblogin',
        component:()=> import('@/views/webMain/Login.vue'),
        name:'login'

    },
    {
        path: '/pilotlogin',
        component: () => import('@/views/page-pilot/pilot-index.vue'),
    },
    {
        path:'/404',
        component:()=> import('@/views/webMain/Login.vue'),

    },
    {
        path:'/:pathMatch(.*)*',
        redirect:'/404',
        name: "Any",

    }
]